import request from '@/utils/request'

// 查询出入库管理列表
export function listStoragemanagement(query) {
  return request({
    url: '/system/storagemanagement/list',
    method: 'get',
    params: query
  })
}

// 查询出入库管理详细
export function getStoragemanagement(query) {
  return request({
    url: '/system/storagemanagement/query',
    method: 'get',
    params: query
  })
}

// 新增出入库管理
export function addStoragemanagement(data) {
  return request({
    url: '/system/storagemanagement',
    method: 'post',
    data: data
  })
}

export function getAlipay(query) {
  return request({
    url: '/alipay/pay',
    method: 'get',
    params: query
  })
}


// 修改出入库管理
export function updateStoragemanagement(data) {
  return request({
    url: '/system/storagemanagement',
    method: 'put',
    data: data
  })
}

// 删除出入库管理
export function delStoragemanagement(storageId) {
  return request({
    url: '/system/storagemanagement/' + storageId,
    method: 'delete'
  })
}

export function getvehicleReport(query) {
  return request({
    url: '/system/storagemanagement/vheicle',
    method: 'post',
    data:query
  })
}
